//*****************************************************************************
//
// ABEC3 Solving Script
// Project: Horn 2D with fins
//
//*****************************************************************************

// Example for Dim=2D of horn with fins

// Embedd file with formulae
File="Formula.txt"

// Another formula-section. Here we want to specify a
// value for MeshFrequency globally. 
 
Formula
  MF=10000

Control_Solver
  f1=200;  f2=50000;  NumFrequencies=48;  Abscissa=log;
  MeshFrequency={ MF }
  Dim=2D

Subdomain_Properties
  Subdomain=6
  Eltype=Exterior

Infinite_Baffle
  Subdomain=6
  IBPlane=x    
  
// In 2D we specify only x and y coordinates.
Nodes  "N"
  //    x            y
  1001  { -x0 }     { -yTh } 
  1002  { -x0 }     { +yTh } 
  1003  0           { +yMo } 
  1004  0           { -yMo } 

  2001  { -x2 }     { -y2 }
  2002  { -x2 }     { +y2 }
  2003  { -x1 }     { +y1 }
  2004  { -x1 }     { -y1 }

  3001  { -x2 }     { -y2/3 }
  3002  { -x2 }     { +y2/3 }
  3003  { -x1 }     { +y1/3 }
  3004  { -x1 }     { -y1/3 }
  
  
Elements "Throat"
  Subdomain=1
  RefNodes="N"
  MeshFrequency={ 2*MF }
  101  1002  1001  
  
Driving
  RefElements="Throat"
  DrvGroup=1001
  

Elements "S1"
  Subdomain=1
  RefNodes="N"
  101  2002  1002  
  102  1001  2001
  
Elements "S2"
  Subdomain=2
  RefNodes="N"
  101  2001  2004
  102  3004  3001

Elements "S3"
  Subdomain=3
  RefNodes="N"
  101  3001  3004
  102  3003  3002

Elements "S4"
  Subdomain=4
  RefNodes="N"
  101  3002  3003
  102  2003  2002  

Elements "S5"
  Subdomain=5
  RefNodes="N"
  101  2004  1004
  102  1003  2003  

// Interfaces between throat section and  middle section

Elements "S12"
  Subdomain=1,2
  RefNodes="N"
  MeshFrequency={ 2*MF }
  101  2001  3001
  
Elements "S13"
  Subdomain=1,3
  RefNodes="N"
  MeshFrequency={ 2*MF }
  101  3001  3002 

Elements "S14"
  Subdomain=1,4
  RefNodes="N"
  MeshFrequency={ 2*MF }
  101  3002  2002


// Interfaces between middle and outer bell section
  
Elements "S52"
  Subdomain=5,2
  RefNodes="N"
  MeshFrequency={ 1.5*MF }
  101  3004  2004

Elements "S53"
  Subdomain=5,3
  RefNodes="N"
  MeshFrequency={ 1.5*MF }
  101  3003  3004

Elements "S54"
  Subdomain=5,4
  RefNodes="N"
  MeshFrequency={ 1.5*MF }
  101  2003  3003


// Interface between bell and exterior
  
Elements "S56"
  Subdomain=5,6
  RefNodes="N"
  MeshFrequency={ 1.5*MF }
  101  1004  1003
  
